/*
 * ============================================================================
 * = COPYRIGHT
 *          PAX Computer Technology(Shenzhen) Co., Ltd. PROPRIETARY INFORMATION
 *   This software is supplied under the terms of a license agreement or nondisclosure
 *   agreement with PAX Computer Technology(Shenzhen) Co., Ltd. and may not be copied or
 *   disclosed except in accordance with the terms in that agreement.
 *     Copyright (C) 2021 PAX Computer Technology(Shenzhen) Co., Ltd. All rights reserved.
 * ============================================================================
 */

import 'auto_data_source_common.dart';
import 'package:pos_link/auto_pigeon/poslink_sdk_batch.dart';
import 'package:pos_link/auto_data_source/auto_query.dart';
class BatchReqData {
  static List<Map> initSourceData() {
    return BatchReqData.batchClearData();
  }
  static List<Map> batchClearData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'edcType',
                kID: 'Batch_Request_BatchClearRequest-edcType',
                kMenuID: 'Batch_Request_BatchClearRequest-edcType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchEdcType.NotSet,
                kData: [
                  {
                    kData: BatchEdcType.NotSet,
                    kID: 'Batch_Request_BatchClearRequest-edcType_NotSet',
                  },
                  {
                    kData: BatchEdcType.All,
                    kID: 'Batch_Request_BatchClearRequest-edcType_All',
                  },
                  {
                    kData: BatchEdcType.Credit,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Credit',
                  },
                  {
                    kData: BatchEdcType.Debit,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Debit',
                  },
                  {
                    kData: BatchEdcType.Ebt,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Ebt',
                  },
                  {
                    kData: BatchEdcType.Gift,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Gift',
                  },
                  {
                    kData: BatchEdcType.Loyalty,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Loyalty',
                  },
                  {
                    kData: BatchEdcType.Cash,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Cash',
                  },
                  {
                    kData: BatchEdcType.Check,
                    kID: 'Batch_Request_BatchClearRequest-edcType_Check',
                  },
                ],
              },
           ];
  }

  static BatchBatchClearRequest formBatchClearRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchBatchClearRequest req = BatchBatchClearRequest();
    req.edcType = RequestListModelQuery.query('Batch_Request_BatchClearRequest-edcType',queryList);
    return req;
  }

  static List<Map> purgeBatchData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: '',
                kTextAttribute: 1,
                kID: 'Batch_Request_PurgeBatchRequest-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

  static BatchPurgeBatchRequest formPurgeBatchRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchPurgeBatchRequest req = BatchPurgeBatchRequest();
    req.timeStamp = RequestListModelQuery.query('Batch_Request_PurgeBatchRequest-timeStamp',queryList);
    return req;
  }

  static List<Map> forceBatchCloseData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: '',
                kTextAttribute: 1,
                kID: 'Batch_Request_ForceBatchCloseRequest-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

  static BatchForceBatchCloseRequest formForceBatchCloseRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchForceBatchCloseRequest req = BatchForceBatchCloseRequest();
    req.timeStamp = RequestListModelQuery.query('Batch_Request_ForceBatchCloseRequest-timeStamp',queryList);
    return req;
  }

  static List<Map> batchCloseData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'timeStamp',
                kValue: '',
                kTextAttribute: 1,
                kID: 'Batch_Request_BatchCloseRequest-timeStamp',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kGroupArrowOpen: true,
                kName: 'multiMerchant',
                kValue: '',
                kID: 'Batch_Request_BatchCloseRequest-multiMerchant',
                kType: DataItemType.Group,
                kShow: true,
              },
              {
                kSuperGroupName: 'multiMerchant',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 2,
                kName: 'multiMerchantId',
                kValue: '',
                kTextAttribute: 1,
                kID: 'Batch_Request_BatchCloseRequest-multiMerchant_multiMerchantId',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: 'multiMerchant',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 2,
                kName: 'multiMerchantName',
                kValue: '',
                kTextAttribute: 2,
                kID: 'Batch_Request_BatchCloseRequest-multiMerchant_multiMerchantName',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

  static BatchBatchCloseRequest formBatchCloseRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchBatchCloseRequest req = BatchBatchCloseRequest();
    req.timeStamp = RequestListModelQuery.query('Batch_Request_BatchCloseRequest-timeStamp',queryList);
    req.multiMerchant = BatchMultiMerchant();
    req.multiMerchant!.multiMerchantId = RequestListModelQuery.query('Batch_Request_BatchCloseRequest-multiMerchant_multiMerchantId',queryList);
    req.multiMerchant!.multiMerchantName = RequestListModelQuery.query('Batch_Request_BatchCloseRequest-multiMerchant_multiMerchantName',queryList);
    return req;
  }

  static List<Map> deleteTransactionData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'edcType',
                kID: 'Batch_Request_DeleteTransactionRequest-edcType',
                kMenuID: 'Batch_Request_DeleteTransactionRequest-edcType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchEdcType.NotSet,
                kData: [
                  {
                    kData: BatchEdcType.NotSet,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_NotSet',
                  },
                  {
                    kData: BatchEdcType.All,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_All',
                  },
                  {
                    kData: BatchEdcType.Credit,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Credit',
                  },
                  {
                    kData: BatchEdcType.Debit,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Debit',
                  },
                  {
                    kData: BatchEdcType.Ebt,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Ebt',
                  },
                  {
                    kData: BatchEdcType.Gift,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Gift',
                  },
                  {
                    kData: BatchEdcType.Loyalty,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Loyalty',
                  },
                  {
                    kData: BatchEdcType.Cash,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Cash',
                  },
                  {
                    kData: BatchEdcType.Check,
                    kID: 'Batch_Request_DeleteTransactionRequest-edcType_Check',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'transactionType',
                kID: 'Batch_Request_DeleteTransactionRequest-transactionType',
                kMenuID: 'Batch_Request_DeleteTransactionRequest-transactionType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchTransactionType.NotSet,
                kData: [
                  {
                    kData: BatchTransactionType.NotSet,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_NotSet',
                  },
                  {
                    kData: BatchTransactionType.Unknown,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Unknown',
                  },
                  {
                    kData: BatchTransactionType.Sale,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Sale',
                  },
                  {
                    kData: BatchTransactionType.Return,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Return',
                  },
                  {
                    kData: BatchTransactionType.Authorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Authorization',
                  },
                  {
                    kData: BatchTransactionType.PostAuthorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_PostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.ForceAuthorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_ForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.Adjust,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Adjust',
                  },
                  {
                    kData: BatchTransactionType.Withdrawal,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Withdrawal',
                  },
                  {
                    kData: BatchTransactionType.Activate,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Activate',
                  },
                  {
                    kData: BatchTransactionType.Issue,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Issue',
                  },
                  {
                    kData: BatchTransactionType.Reload,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Reload',
                  },
                  {
                    kData: BatchTransactionType.Cashout,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Cashout',
                  },
                  {
                    kData: BatchTransactionType.Deactivate,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Deactivate',
                  },
                  {
                    kData: BatchTransactionType.Replace,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Replace',
                  },
                  {
                    kData: BatchTransactionType.Merge,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Merge',
                  },
                  {
                    kData: BatchTransactionType.ReportLost,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_ReportLost',
                  },
                  {
                    kData: BatchTransactionType.Void,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Void',
                  },
                  {
                    kData: BatchTransactionType.VoidSale,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_VoidSale',
                  },
                  {
                    kData: BatchTransactionType.VoidReturn,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_VoidReturn',
                  },
                  {
                    kData: BatchTransactionType.VoidAuthorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_VoidAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidPostAuthorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_VoidPostAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidForceAuthorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_VoidForceAuthorization',
                  },
                  {
                    kData: BatchTransactionType.VoidWithdrawal,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_VoidWithdrawal',
                  },
                  {
                    kData: BatchTransactionType.Inquiry,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Inquiry',
                  },
                  {
                    kData: BatchTransactionType.Verify,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Verify',
                  },
                  {
                    kData: BatchTransactionType.Reactivate,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Reactivate',
                  },
                  {
                    kData: BatchTransactionType.ForcedIssue,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_ForcedIssue',
                  },
                  {
                    kData: BatchTransactionType.ForcedAdd,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_ForcedAdd',
                  },
                  {
                    kData: BatchTransactionType.Unload,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Unload',
                  },
                  {
                    kData: BatchTransactionType.Renew,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Renew',
                  },
                  {
                    kData: BatchTransactionType.GetConvertDetail,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_GetConvertDetail',
                  },
                  {
                    kData: BatchTransactionType.Convert,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Convert',
                  },
                  {
                    kData: BatchTransactionType.Tokenize,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Tokenize',
                  },
                  {
                    kData: BatchTransactionType.IncrementalAuthorization,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_IncrementalAuthorization',
                  },
                  {
                    kData: BatchTransactionType.BalanceWithLock,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_BalanceWithLock',
                  },
                  {
                    kData: BatchTransactionType.RedemptionWithUnlock,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_RedemptionWithUnlock',
                  },
                  {
                    kData: BatchTransactionType.Rewards,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Rewards',
                  },
                  {
                    kData: BatchTransactionType.Reenter,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Reenter',
                  },
                  {
                    kData: BatchTransactionType.TransactionAdjustment,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_TransactionAdjustment',
                  },
                  {
                    kData: BatchTransactionType.Transfer,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Transfer',
                  },
                  {
                    kData: BatchTransactionType.Finalize,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Finalize',
                  },
                  {
                    kData: BatchTransactionType.Deposit,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Deposit',
                  },
                  {
                    kData: BatchTransactionType.AccountPayment,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_AccountPayment',
                  },
                  {
                    kData: BatchTransactionType.Reversal,
                    kID: 'Batch_Request_DeleteTransactionRequest-transactionType_Reversal',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'cardType',
                kID: 'Batch_Request_DeleteTransactionRequest-cardType',
                kMenuID: 'Batch_Request_DeleteTransactionRequest-cardType_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCardType.NotSet,
                kData: [
                  {
                    kData: BatchCardType.NotSet,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_NotSet',
                  },
                  {
                    kData: BatchCardType.Visa,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Visa',
                  },
                  {
                    kData: BatchCardType.MasterCard,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_MasterCard',
                  },
                  {
                    kData: BatchCardType.Amex,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Amex',
                  },
                  {
                    kData: BatchCardType.Discover,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Discover',
                  },
                  {
                    kData: BatchCardType.DinerClub,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_DinerClub',
                  },
                  {
                    kData: BatchCardType.EnRoute,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_EnRoute',
                  },
                  {
                    kData: BatchCardType.Jcb,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Jcb',
                  },
                  {
                    kData: BatchCardType.RevolutionCard,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_RevolutionCard',
                  },
                  {
                    kData: BatchCardType.VisaFleet,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_VisaFleet',
                  },
                  {
                    kData: BatchCardType.MasterCardFleet,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_MasterCardFleet',
                  },
                  {
                    kData: BatchCardType.FleetOne,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_FleetOne',
                  },
                  {
                    kData: BatchCardType.Fleetwide,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Fleetwide',
                  },
                  {
                    kData: BatchCardType.Fuelman,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Fuelman',
                  },
                  {
                    kData: BatchCardType.Gascard,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Gascard',
                  },
                  {
                    kData: BatchCardType.Voyager,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Voyager',
                  },
                  {
                    kData: BatchCardType.WrightExpress,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_WrightExpress',
                  },
                  {
                    kData: BatchCardType.Interac,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Interac',
                  },
                  {
                    kData: BatchCardType.Cup,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Cup',
                  },
                  {
                    kData: BatchCardType.Maestro,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Maestro',
                  },
                  {
                    kData: BatchCardType.Sinclair,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Sinclair',
                  },
                  {
                    kData: BatchCardType.Other,
                    kID: 'Batch_Request_DeleteTransactionRequest-cardType_Other',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'recordNumber',
                kValue: '',
                kTextAttribute: 1,
                kID: 'Batch_Request_DeleteTransactionRequest-recordNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'originalReferenceNumber',
                kValue: '',
                kTextAttribute: 1,
                kID: 'Batch_Request_DeleteTransactionRequest-originalReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'authorizationCode',
                kValue: '',
                kTextAttribute: 2,
                kID: 'Batch_Request_DeleteTransactionRequest-authorizationCode',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'ecrReferenceNumber',
                kValue: '',
                kTextAttribute: 2,
                kID: 'Batch_Request_DeleteTransactionRequest-ecrReferenceNumber',
                kType: DataItemType.CellInput,
                kShow: true,
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'globalUid',
                kValue: '',
                kTextAttribute: 2,
                kID: 'Batch_Request_DeleteTransactionRequest-globalUid',
                kType: DataItemType.CellInput,
                kShow: true,
              },
           ];
  }

  static BatchDeleteTransactionRequest formDeleteTransactionRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchDeleteTransactionRequest req = BatchDeleteTransactionRequest();
    req.edcType = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-edcType',queryList);
    req.transactionType = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-transactionType',queryList);
    req.cardType = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-cardType',queryList);
    req.recordNumber = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-recordNumber',queryList);
    req.originalReferenceNumber = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-originalReferenceNumber',queryList);
    req.authorizationCode = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-authorizationCode',queryList);
    req.ecrReferenceNumber = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-ecrReferenceNumber',queryList);
    req.globalUid = RequestListModelQuery.query('Batch_Request_DeleteTransactionRequest-globalUid',queryList);
    return req;
  }

  static List<Map> safUploadData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'safIndicator',
                kID: 'Batch_Request_SafUploadRequest-safIndicator',
                kMenuID: 'Batch_Request_SafUploadRequest-safIndicator_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchSafIndicator.NotSet,
                kData: [
                  {
                    kData: BatchSafIndicator.NotSet,
                    kID: 'Batch_Request_SafUploadRequest-safIndicator_NotSet',
                  },
                  {
                    kData: BatchSafIndicator.NewStoredTransactionRecords,
                    kID: 'Batch_Request_SafUploadRequest-safIndicator_NewStoredTransactionRecords',
                  },
                  {
                    kData: BatchSafIndicator.FailedTransactionRecords,
                    kID: 'Batch_Request_SafUploadRequest-safIndicator_FailedTransactionRecords',
                  },
                  {
                    kData: BatchSafIndicator.DeleteAllSafRecords,
                    kID: 'Batch_Request_SafUploadRequest-safIndicator_DeleteAllSafRecords',
                  },
                ],
              },
           ];
  }

  static BatchSafUploadRequest formSafUploadRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchSafUploadRequest req = BatchSafUploadRequest();
    req.safIndicator = RequestListModelQuery.query('Batch_Request_SafUploadRequest-safIndicator',queryList);
    return req;
  }

  static List<Map> deleteSafFileData() {
      return [
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'BatchCommand',
                kID: 'BatchCommand',
                kMenuID: 'BatchCommand_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchCommand.BatchClearRequest,
                kData: [
                  {
                    kData: BatchCommand.BatchClearRequest,
                    kID: 'BatchCommand_BatchClearRequest',
                  },
                  {
                    kData: BatchCommand.PurgeBatchRequest,
                    kID: 'BatchCommand_PurgeBatchRequest',
                  },
                  {
                    kData: BatchCommand.ForceBatchCloseRequest,
                    kID: 'BatchCommand_ForceBatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.BatchCloseRequest,
                    kID: 'BatchCommand_BatchCloseRequest',
                  },
                  {
                    kData: BatchCommand.DeleteTransactionRequest,
                    kID: 'BatchCommand_DeleteTransactionRequest',
                  },
                  {
                    kData: BatchCommand.SafUploadRequest,
                    kID: 'BatchCommand_SafUploadRequest',
                  },
                  {
                    kData: BatchCommand.DeleteSafFileRequest,
                    kID: 'BatchCommand_DeleteSafFileRequest',
                  },
                ],
              },
              {
                kSuperGroupName: '',
                kTextShowType: 1,
                kEnable: true,
                kLevel: 1,
                kName: 'safIndicator',
                kID: 'Batch_Request_DeleteSafFileRequest-safIndicator',
                kMenuID: 'Batch_Request_DeleteSafFileRequest-safIndicator_menubtn',
                kType: DataItemType.Menu,
                kShow: true,
                kValue: BatchSafIndicator.NotSet,
                kData: [
                  {
                    kData: BatchSafIndicator.NotSet,
                    kID: 'Batch_Request_DeleteSafFileRequest-safIndicator_NotSet',
                  },
                  {
                    kData: BatchSafIndicator.NewStoredTransactionRecords,
                    kID: 'Batch_Request_DeleteSafFileRequest-safIndicator_NewStoredTransactionRecords',
                  },
                  {
                    kData: BatchSafIndicator.FailedTransactionRecords,
                    kID: 'Batch_Request_DeleteSafFileRequest-safIndicator_FailedTransactionRecords',
                  },
                  {
                    kData: BatchSafIndicator.DeleteAllSafRecords,
                    kID: 'Batch_Request_DeleteSafFileRequest-safIndicator_DeleteAllSafRecords',
                  },
                ],
              },
           ];
  }

  static BatchDeleteSafFileRequest formDeleteSafFileRequest(List<Map> list) {
    List<Map> queryList = [];
    queryList.addAll(list);
    BatchDeleteSafFileRequest req = BatchDeleteSafFileRequest();
    req.safIndicator = RequestListModelQuery.query('Batch_Request_DeleteSafFileRequest-safIndicator',queryList);
    return req;
  }

  static List<Map>? queryDataByString(String string) {
    List tempList = string.split('.');
    if (tempList.length < 2) { return null; }
    String tempStr = tempList[1];
    List<Map> list;
    switch (tempStr) {
      case 'BatchClearRequest':
        list = BatchReqData.batchClearData();
        break;
      case 'PurgeBatchRequest':
        list = BatchReqData.purgeBatchData();
        break;
      case 'ForceBatchCloseRequest':
        list = BatchReqData.forceBatchCloseData();
        break;
      case 'BatchCloseRequest':
        list = BatchReqData.batchCloseData();
        break;
      case 'DeleteTransactionRequest':
        list = BatchReqData.deleteTransactionData();
        break;
      case 'SafUploadRequest':
        list = BatchReqData.safUploadData();
        break;
      case 'DeleteSafFileRequest':
        list = BatchReqData.deleteSafFileData();
        break;
      default:
        list = [];
        break;
    }
    return list;
  }

}
